package com.wuzhishan.news.service;

import com.wuzhishan.news.pojo.BlogUser;
import com.wuzhishan.news.pojo.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

public interface userService {
    Map<String, Object> register(BlogUser formUser);

    Result login(String username, String password, HttpSession session);

    Result updatePassword(String oldPassword, String password, HttpSession session);

    Result updateProfile(String nickname, String sign, HttpSession session);

    Result updateAvatar(int x, int y, int width, int height, String path, HttpServletRequest request);
}
